#ifndef CONTACTLISTTAB_H
#define CONTACTLISTTAB_H

#include <QTableWidget>
#include "logic/dataDefination.h"

class ContactListTab : public QTableWidget
{
    Q_OBJECT
public:
    explicit ContactListTab(QWidget *parent = 0);
    void updateContactList(const QList<userInfo> &contactList);
    QString findUserNameByIp(const QString &ip);

signals:
    void openConversationTab(const QString &);

public slots:
    void rowDoubleClicked(int row);

private:
    QList<userInfo> mContactList;
};

#endif // CONTACTLISTTAB_H
